<h2>Drivers List</h2>

<div class="actionBar">
[<?php echo CHtml::link('New Drivers',array('create')); ?>]
[<?php echo CHtml::link('Manage Drivers',array('admin')); ?>]
</div>

<?php $this->widget('CLinkPager',array('pages'=>$pages)); ?>

<?php foreach($models as $n=>$model): ?>
<div class="item">
<?php echo CHtml::encode($model->getAttributeLabel('id')); ?>:
<?php echo CHtml::link($model->id,array('show','id'=>$model->id)); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('name')); ?>:
<?php echo CHtml::encode($model->name); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('name_py')); ?>:
<?php echo CHtml::encode($model->name_py); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('household_register')); ?>:
<?php echo CHtml::encode($model->household_register); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('sex')); ?>:
<?php echo CHtml::encode($model->sex==0?'男':'女'); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('birthday')); ?>:
<?php echo CHtml::encode($model->birthday); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('identity_card')); ?>:
<?php echo CHtml::encode($model->identity_card); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('files_number')); ?>:
<?php echo CHtml::encode($model->files_number); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('driver_number')); ?>:
<?php echo CHtml::encode($model->driver_number); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('car_type')); ?>:
<?php echo CHtml::encode($model->car_type); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('issue_card_time')); ?>:
<?php echo CHtml::encode($model->issue_card_time); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('term_of_drive_card_time')); ?>:
<?php echo CHtml::encode($model->term_of_drive_card_time); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('drive_card_examine_time')); ?>:
<?php echo CHtml::encode($model->drive_card_examine_time); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('home_tel')); ?>:
<?php echo CHtml::encode($model->home_tel); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('home_addr')); ?>:
<?php echo CHtml::encode($model->home_addr); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('start_work_time')); ?>:
<?php echo CHtml::encode($model->start_work_time); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('mobile')); ?>:
<?php echo CHtml::encode($model->mobile); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('rewards_and_punishments')); ?>:
<?php echo CHtml::encode($model->rewards_and_punishments); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('state')); ?>:
<?php echo CHtml::encode($model->state==0?'正常':'删除'); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('create_time')); ?>:
<?php echo CHtml::encode($model->create_time); ?>
<br/>

</div>
<?php endforeach; ?>
<br/>
<?php $this->widget('CLinkPager',array('pages'=>$pages)); ?>